﻿SeadragonJSEventManager = function() {
    /// <summary>Creates a button with the given tooltip, state images and event handlers.</summary>
    /// <returns type="Object"></returns>
}

SeadragonJSEventManager.prototype =
{
    addListener: function(eventName, handler) {
        /// <summary>Adds the given handler function as a listener for the event with the given name.</summary>
        /// <param name="eventName"></param>
        /// <param name="handler"></param>        
    },

    removeListener: function(eventName, handler) {
        /// <summary>Removes the given handler function as a listener for the event with the given name.</summary>
        /// <param name="eventName"></param>
        /// <param name="srcRest"></param>
    },

    clearListeners: function(eventName) {
        /// <summary>Removes all listeners for the given event.</summary>
        /// <param name="eventName"></param>
    },

    trigger: function(eventName, parameters) {
        /// <summary>Triggers the event with the given name, optionally passing any additional arguments to the registered handler functions.</summary>
        /// <param name="eventName"></param>
        /// <param name="parameters"></param>        
    }
}
